home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.os.msdos.programmer
- Path: news.uunet.ca!nypl!torfree!ak892
- From: ak892@torfree.net (Bruce DeVisser)
- Subject: Re: Timer (0x1C) Interrupt exactly 18.2 seconds?
- Message-ID: <Dn9FMB.19s.0.sheppard@torfree.net>
- Followup-To: comp.lang.c++,comp.os.msdos.programmer
- Organization: Toronto Free-Net
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4givrv$cim@midland.co.nz>
- Date: Sat, 24 Feb 1996 03:13:23 GMT
-
- Jarrod S Lowe (lowefam@igrin.co.nz) wrote:
- : Hi
-
- : I have a C++ Program (on DOS) in which a function is attached to the
- : Timer (0x1C) Interrupt.
-
- : [snip]
-
- : This program is expected to run, continually, for YEARS - so a drift
- : that shows up in 5 minutes will make it unusable.
-
- : Does anybody have any ideas WHY this is happening?
-
- Yes; because the timer is not exactly 18.2 Hz. Try taking the oscillator
- frequency -- 1.19318 MHz (which may drift slightly, so don't get too
- carried away with precision), dividing it by 65536, and see what you come
- up with.
-
- --
- __
- Bruce DeVisser
- BMD Software Engineering
- 905-857-5653
-